package com.zhanggm.zyk.contract.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.bw.itext.pdf.annotation.PdfValue;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 合同信息表
 * </p>
 *
 * @author zhanggm
 * @since 2024-03-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_contract")
public class Contract implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 合同ID
     */
    @PdfValue(colName = "合同ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 借款方
     */
    @PdfValue(colName = "合同ID")
    private String comFrom;

    /**
     * 合同结束时间
     */
    @PdfValue(colName = "合同ID")
    private LocalDate dateEnd;

    /**
     * 合同开始时间
     */
    @PdfValue(colName = "合同ID")
    private LocalDate dateStart;

    /**
     * 合同金额
     */
    @PdfValue(colName = "合同ID")
    private BigDecimal total;

    /**
     * 合同状态
     */
    private String status;

    /**
     * 附件Id
     */
    private String fileId;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 借款方联系地址
     */
    private String comAddress;

    /**
     * 客户邮件
     */
    private String email;


    @TableField(exist = false)
    private String taskId;

    @TableField(exist = false)
    private String taskName;


}
